<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include_once "function_net_vlan.php";
$in_array['VlanId'] = $_POST['vlan_id'];
$in_array['Enabled'] = $_POST['Enabled'];
$in_array['Dev'] = $_POST['dev'];
$in_array['Protocol'] = $_POST['protocol'];
$in_array['Ip'] = $_POST['vlan_ip'];
$in_array['Mask'] = $_POST['vlan_mask'];
$in_array['WorkModel'] = $_POST['selectworkMODEL'];
$in_array['Desc'] = base64_encode($_POST['desc']);
$in_array['Enable_Ping'] = $_POST['ping'];
$in_array['Enable_Trace'] = $_POST['traceroute'];

//print_r($in_array);
AppendXmlNetDevOneVlan($in_array);

include_once "function_misc_log.php";
$in_array['Desc'] = "'". $in_array['Desc']. "'";
logger("Add", $in_array, "Vlan");

//echo("<meta http-equiv='refresh'content=0;URL='net_dev_vlan_list.php'>");
include "function_web_misc.php";
PrintSuccessPageAndJump('net_dev_vlan_list.php');
?>
